package com.rdk.entity;

import net.sf.json.JSONObject;

public class TUser {
    private String userId;

    private String userName;

    private String userNameTag;

    private String birthday;

    private String sex;

    private String avatar;

    private String timestamp = "[]";
    
    private String tag;
    
    private String id;
    private String name;

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserNameTag() {
        return userNameTag;
    }

    public void setUserNameTag(String userNameTag) {
        this.userNameTag = userNameTag;
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(String timestamp) {
        this.timestamp = timestamp;
    }

	public String getTag() {
		return tag;
	}

	public void setTag(String tag) {
		this.tag = tag;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public JSONObject getUserInfo() {
        JSONObject json = new JSONObject();
        json.put("id", userId);
        json.put("name", userName);
        json.put("avatar", avatar);
        return json;
    }

    public JSONObject getUserInfo2() {
        JSONObject json = new JSONObject();
        json.put("id", userId);
        json.put("name", userName);
        return json;
    }

    
	@Override
	public String toString() {
		return "TUser [userId=" + userId + ", userName=" + userName
				+ ", userNameTag=" + userNameTag + ", birthday=" + birthday
				+ ", sex=" + sex + ", avatar=" + avatar + ", timestamp="
				+ timestamp + "]";
	}
}